home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilreen
/
dmplas
/
dmplas.exe
/
DLTEST-F.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-08-15
|
2KB
|
34 lines
10 FILE$="DLTEST-F.PRN"
20 CR$=CHR$(13) :LF$=CHR$(10) :CRLF$=CR$+LF$ :ESC$=CHR$(27)
25 ONELF$=CR$+ESC$+"J"+CHR$(12)
30 PRINT CRLF$:PRINT " Creating ";FILE$;" - Please wait "
40 OPEN "O",#1,FILE$
50 PRINT#1,ESC$;"@";" DLTEST-F Graphics Commands -- each block is 240 dots wide";CRLF$
60 GOTO 210
70 PRINT#1,"Graphics command ESC '*'";G;"... ";D$;D;"dpi"
140 FOR I=1 TO 2 :PRINT ".";
141 PRINT#1, ESC$;"*";CHR$(G);CHR$(240);CHR$(0);
142 FOR J=1 TO 120 :PRINT#1,CHR$(170);CHR$(85);
143 NEXT J: PRINT#1,CRLF$; :NEXT I: PRINT#1,ONELF$;
160 FOR I=1 TO 2 :PRINT ".";
161 PRINT#1, ESC$;"*";CHR$(G);CHR$(240);CHR$(0);
162 FOR J=1 TO 30 :PRINT#1,CHR$(170);CHR$(255);CHR$(170);CHR$(255);CHR$(85);CHR$(170);CHR$(255);CHR$(85);
163 NEXT J: PRINT#1,CRLF$; :NEXT I: PRINT#1,ONELF$;
180 FOR I=1 TO 2 :PRINT ".";
190 PRINT#1, ESC$;"*";CHR$(G);CHR$(240);CHR$(0);STRING$(240,255)
200 NEXT I: RETURN
210 PRINT#1, ESC$;"3";CHR$(24);
220 DATA 60,"or ESC 'K'... Normal",120,"or ESC 'L'... Double",120,"or ESC 'Y'... Dbl speed"
230 DATA 240,"or ESC 'Z'... Quadruple",80,"(no equivalent) Semi-double"
235 DATA 72,"(no equivalent) Plotter"
240 DATA 90,"(no equivalent) CRT Graphics",144,"(no equivalent) Dble Plotter"
250 FOR G= 0 TO 7: READ D,D$ :PRINT ".";
260 GOSUB 70: PRINT#1, CRLF$
270 NEXT G
280 PRINT#1, ESC$;"3";CHR$(36);
290 PRINT#1,"Note: ESC '*' 7 ... is not accepted by all dot matrix printers"
310 PRINT#1, CHR$(12);ESC$;"@";
320 CLOSE #1
330 SYSTEM
340 END